package com.shanyepifu;

import com.shanyepifu.inter.TestInter;
import com.shanyepifu.inter.impl.TestInterImpl;
import com.shanyepifu.server.RPCExporter;

/**
 * Created by lifaxin on 16/7/18.
 */
public class StartServer {

    public static void main(String[] args) {
        RPCExporter rpcExporter = new RPCExporter();
        TestInter testInter = new TestInterImpl();
        try {
            rpcExporter.export(testInter, 5241);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
